<DModal
  {{on "submit" this.save}}
  @title={{i18n "chat_integration.edit_channel_modal.title"}}
  @closeModal={{@closeModal}}
  @tagName="form"
  id="chat-integration-edit-channel-modal"
>
  <:body>
    <table>
      <tbody>
        <tr class="input">
          <td class="label">
            <label for="provider">
              {{i18n "chat_integration.edit_channel_modal.provider"}}
            </label>
          </td>
          <td>
            {{i18n
              (concat
                "chat_integration.provider." @model.channel.provider ".title"
              )
            }}
          </td>
        </tr>

        <tr class="chat-instructions">
          <td></td>
          <td></td>
        </tr>

        {{#each @model.provider.channel_parameters as |param|}}
          <ChannelParamRow @param={{param}} @channel={{@model.channel}} />
        {{/each}}
      </tbody>
    </table>
  </:body>

  <:footer>
    <DButton
      @action={{this.save}}
      @label="chat_integration.edit_channel_modal.save"
      @disabled={{not this.validParams}}
      type="submit"
      id="save-channel"
      class="btn-primary btn-large"
    />

    <DButton
      @action={{@closeModal}}
      @label="chat_integration.edit_channel_modal.cancel"
      class="btn-large"
    />
  </:footer>
</DModal>